package eScrum.dao;

import java.util.List;

import eScrum.entities.User;
import eScrum.entities.UserSearchCriteria;
import eScrum.entities.UserStatus;

public interface UserDao {

	public User saveOrUpdate(User u);

	public User exists(String username);

	public boolean signIn(String username, String password);

	public void roleTest(UserStatus u);

	public List<User> findAll();

	public void deleteUser(String id);

	public User findById(long id);

	public List<User> findUsersByRange(int first, int count, UserSearchCriteria userSearchCriteria);
	
	public long userSize(UserSearchCriteria userSearchCriteria);

}
